package sss

import (
	"testing"
	"path/filepath"
	"kumachan/standalone/util"
	"kumachan/standalone/rpc/vd"
)


func TestCorrespondingSource(t *testing.T) {
	var srcFile = filepath.Join(util.ExeDir(), "..", "support", "sss", "#.km")
	var opts = vd.GoStructOptions {
		Records: [] interface{} {
			StyleSheet {},
			Rule {},
			ClassSelector {},
			PseudoClassSelector {},
			Styles {},
			ColorDef {},
			ColorValue {},
			Color {},
			Preview {},
			Box {},
			Geometry {},
			Measure {},
			QuadMeasure {},
			Position {},
			Spacing {},
			Size {},
			Overflow {},
			FancyBox {},
			BorderStyle {},
			BoxShadow {},
			Background {},
			BackgroundColor {},
			BackgroundSimpleGradient {},
			SimpleGradient {},
			LayoutConfig {},
			LayoutItemConfig {},
			GridArea {},
			BlockContainer {},
			InlineContainer {},
			InlineBlockContainer {},
			FlexContainer {},
			GridContainer {},
			TextConfig {},
			SingleLineConfig {},
			MultiLineConfig {},
			TextFontConfig {},
		},
	}
	var _, src = vd.CreateGoStructTransformer(opts)
	println(src)
	var err = vd.MatchSource(src, srcFile)
	if err != nil {
		t.Fatal(err)
	}
}


